<!doctype html>
<html>
<head>
<title>Templates list</title>
</head>
<body>
<h2> Please choose your template: </h2>

<!--  {% for t in templates %}
 <li><a href="http://127.0.0.1:8000/components/">{{t.name}}</a></li>
{% endfor %}
-->

<form action="/components/" method="POST">
{% csrf_token %}
{% for t in templates %}
<input type="submit" name="name" value="{{t.name}}" /><br>
{% endfor %}

</form>






</body>
</html>